<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86181
  Date: 2024/9/14
  Time: 15:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>layout 管理界面大布局示例 - Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../css/layui.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../css/shop/public.css"/>
    <link rel="stylesheet" type="text/css" href="../css/shop/shouye.css"/>

</head>
<body>
<div class="layui-layout layui-layout-admin">


    <div class="layui-body">


        <div style="margin-left: -150px;margin-top: 5px" class="layui-carousel" id="ID-carousel-demo-1">
            <div carousel-item>
                <div>
                    <img src="../images/shopping/首页滚筒条/滚动条01.png" style="width: 1380px;height: 290px">
                </div>
                <div>
                    <img src="../images/shopping/首页滚筒条/滚动条01.png" style="width: 1380px;height: 290px">
                </div>
                <div>
                    <img src="../images/shopping/首页滚筒条/滚动条01.png" style="width: 1380px;height: 290px">
                </div>
                <div>
                    <img src="../images/shopping/首页滚筒条/滚动条01.png" style="width: 1380px;height: 290px">
                </div>
                <div>
                    <img src="../images/shopping/首页滚筒条/滚动条01.png" style="width: 1380px;height: 290px">
                </div>
            </div>
        </div>


        <div class="layui-panel" style="background: #f5f5f5;margin-top: 20px;margin-left: -160px;width: 1380px;">
            <div class="layui-bg-gray"  >
                <div class="layui-row layui-col-space15" style="margin: 20px;width: 2690px">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header" style="margin-left: 20px">
                                女装男装
                                <a href="/OnlineShopping/shopping/home?method=selectAllByType&PType=女装男装">
                                    <span style="margin-left: 1100px">更多详情>></span>
                                </a>

                            </div>
                            <div class="layui-card-body" style="height: 630px;padding-top: 30px ;margin-left: 20px">
                                <ul>

                                    <C:forEach var="product" items="${productList01}">
                                        <li class="phone_tu">
                                            <a href="/OnlineShopping/shopping/home_shoppingGoods?pid=${product.PId}">
                                                <div class="ph">
                                                    <img src="${pageContext.request.contextPath}/${product.PImage01}" >
                                                </div>
                                                <div class="na">${product.PName}</div>
                                                <p>￥${product.PPrice}</p>
                                            </a>
                                        </li>
                                    </C:forEach>



                                </ul>


                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space15" style="margin: 20px;width: 2690px">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header" style="margin-left: 20px">
                                鞋类箱包
                                <a href="/OnlineShopping/shopping/home?method=selectAllByType&PType=鞋类箱包">
                                    <span style="margin-left: 1100px">更多详情>></span>
                                </a>

                            </div>
                            <div class="layui-card-body" style="height: 630px;padding-top: 30px ;margin-left: 20px">
                                <ul>

                                    <C:forEach var="product" items="${productList02}">
                                        <li class="phone_tu">
                                            <a href="/OnlineShopping/shopping/home_shoppingGoods?pid=${product.PId}">
                                                <div class="ph">
                                                    <img src="${pageContext.request.contextPath}/${product.PImage01}" >
                                                </div>
                                                <div class="na">${product.PName}</div>
                                                <p>￥${product.PPrice}</p>
                                            </a>
                                        </li>
                                    </C:forEach>



                                </ul>


                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space15" style="margin: 20px;width: 2690px">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header" style="margin-left: 20px">
                                护肤彩妆
                                <a href="/OnlineShopping/shopping/home?method=selectAllByType&PType=护肤彩妆">
                                    <span style="margin-left: 1100px">更多详情>></span>
                                </a>

                            </div>
                            <div class="layui-card-body" style="height: 630px;padding-top: 30px ;margin-left: 20px">
                                <ul>

                                    <C:forEach var="product" items="${productList03}">
                                        <li class="phone_tu">
                                            <a href="/OnlineShopping/shopping/home_shoppingGoods?pid=${product.PId}">
                                                <div class="ph">
                                                    <img src="${pageContext.request.contextPath}/${product.PImage01}" >
                                                </div>
                                                <div class="na">${product.PName}</div>
                                                <p>￥${product.PPrice}</p>
                                            </a>
                                        </li>
                                    </C:forEach>



                                </ul>


                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space15" style="margin: 20px;width: 2690px">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header" style="margin-left: 20px">
                                汇吃美食
                                <a href="/OnlineShopping/shopping/home?method=selectAllByType&PType=汇吃美食">
                                    <span style="margin-left: 1100px">更多详情>></span>
                                </a>

                            </div>
                            <div class="layui-card-body" style="height: 630px;padding-top: 30px ;margin-left: 20px">
                                <ul>

                                    <C:forEach var="product" items="${productList04}">
                                        <li class="phone_tu">
                                            <a href="/OnlineShopping/shopping/home_shoppingGoods?pid=${product.PId}">
                                                <div class="ph">
                                                    <img src="${pageContext.request.contextPath}/${product.PImage01}" >
                                                </div>
                                                <div class="na">${product.PName}</div>
                                                <p>￥${product.PPrice}</p>
                                            </a>
                                        </li>
                                    </C:forEach>



                                </ul>


                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space15" style="margin: 20px;width: 2690px">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header" style="margin-left: 20px">
                                手机数码
                                <a href="/OnlineShopping/shopping/home?method=selectAllByType&PType=手机数码">
                                    <span style="margin-left: 1100px">更多详情>></span>
                                </a>

                            </div>
                            <div class="layui-card-body" style="height: 630px;padding-top: 30px ;margin-left: 20px">
                                <ul>

                                    <C:forEach var="product" items="${productList05}">
                                        <li class="phone_tu">
                                            <a href="/OnlineShopping/shopping/home_shoppingGoods?pid=${product.PId}">
                                                <div class="ph">
                                                    <img src="${pageContext.request.contextPath}/${product.PImage01}" >
                                                </div>
                                                <div class="na">${product.PName}</div>
                                                <p>￥${product.PPrice}</p>
                                            </a>
                                        </li>
                                    </C:forEach>



                                </ul>


                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space15" style="margin: 20px;width: 2690px">
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header" style="margin-left: 20px">
                                其他产品
                                <a href="/OnlineShopping/shopping/home?method=selectAllByType&PType=其他产品">
                                    <span style="margin-left: 1100px">更多详情>></span>
                                </a>

                            </div>
                            <div class="layui-card-body" style="height: 630px;padding-top: 30px ;margin-left: 20px">
                                <ul>

                                    <C:forEach var="product" items="${productList06}">
                                        <li class="phone_tu">

                                            <a href="/OnlineShopping/shopping/home_shoppingGoods?pid=${product.PId}">
                                                <div class="ph">
                                                    <img src="${pageContext.request.contextPath}/${product.PImage01}" >
                                                </div>
                                                <div class="na">${product.PName}</div>
                                                <p>￥${product.PPrice}</p>
                                            </a>
                                        </li>
                                    </C:forEach>



                                </ul>


                            </div>
                        </div>
                    </div>
                </div>


            </div>

        </div>



        <div class="footer" style="margin-left: -220px">
            <div class="translate">
                <div class="footer-links">
                    <h5>购物指南</h5>
                    <ul>
                        <li><a href="#">购物流程</a></li>
                        <li><a href="#">会员介绍</a></li>
                        <li><a href="#">生活旅行</a></li>
                        <li><a href="#">常见问题</a></li>
                        <li><a href="#">联系客服</a></li>
                    </ul>
                </div>
                <div class="footer-links">
                    <h5>支付方式</h5>
                    <ul>
                        <li><a href="#">信用卡</a></li>
                        <li><a href="#">货到付款</a></li>
                        <li><a href="#">在线付款</a></li>
                        <li><a href="#">分期付款</a></li>
                    </ul>
                </div>
                <div class="footer-links">
                    <h5>售后服务</h5>
                    <ul>
                        <li><a href="#">售后政策</a></li>
                        <li><a href="#">退款说明</a></li>
                        <li><a href="#">返修/退换货</a></li>
                    </ul>
                </div>
                <div class="footer-links">
                    <h5>帮助中心</h5>
                    <ul>
                        <li><a href="#">账户管理</a></li>
                        <li><a href="#">自助服务</a></li>
                        <li><a href="#">订单操作</a></li>
                        <li><a href="#">服务网点</a></li>
                        <li><a href="#">授权体验店/专区</a></li>
                    </ul>
                </div>
                <div class="footer-links">
                    <h5>关于我们</h5>
                    <ul>
                        <li><a href="#">新浪微博</a></li>
                        <li><a href="#">官方微信</a></li>
                        <li><a href="#">联系我们</a></li>
                        <li><a href="#">加入我们</a></li>
                        <li><a href="#">公益基金会</a></li>
                    </ul>
                </div>
            </div>
        </div>

    </div>
</div>

<div id="target-test" style="margin-right: -500px;position: relative; padding: 16px;">
</div>

<!--<script src="//unpkg.com/layui@2.9.16/dist/layui.js"></script>-->
<script src="../js/layui.js"></script>


<script>
    layui.use(function(){
        var util = layui.util;
        // 自定义固定条
        util.fixbar({
            bars: [{ // 定义可显示的 bar 列表信息 -- v2.8.0 新增
                type: 'share',
                icon: 'layui-icon-share'
            }, {
                type: 'help',
                icon: 'layui-icon-help'
            }, {
                type: 'cart',
                icon: 'layui-icon-cart',
                // style: 'background-color: #FF5722;'
            }, {
                type: 'groups',
                content: '群',
                style: 'font-size: 21px;'
            }],
            // bar1: true,
            // bar2: true,
            // default: false, // 是否显示默认的 bar 列表 --  v2.8.0 新增
            // bgcolor: '#393D52', // bar 的默认背景色
            // css: {right: 100, bottom: 100},
            // target: '#target-test', // 插入 fixbar 节点的目标元素选择器
            // duration: 300, // top bar 等动画时长（毫秒）
            on: { // 任意事件 --  v2.8.0 新增
                mouseenter: function(type){
                    layer.tips(type, this, {
                        tips: 4,
                        fixed: true
                    });
                },
                mouseleave: function(type){
                    layer.closeAll('tips');
                }
            },
            // 点击事件
            click: function(type){
                console.log(this, type);
                // layer.msg(type);
            }
        });
    });
</script>

<script>
    layui.use(function(){
        var carousel = layui.carousel;
        // 渲染 - 常规轮播
        carousel.render({
            elem: '#ID-carousel-demo-1',
            width: '1500px'
        });
    });
</script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element;
        var layer = layui.layer;
        var util = layui.util;
        var $ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            menuLeft: function(othis){ // 左侧菜单事件
                layer.msg('展开左侧菜单的操作', {icon: 0});
            },
            menuRight: function(){  // 右侧菜单事件
                layer.open({
                    type: 1,
                    title: '更多',
                    content: '<div style="padding: 15px;">处理右侧面板的操作</div>',
                    area: ['260px', '100%'],
                    offset: 'rt', // 右上角
                    anim: 'slideLeft', // 从右侧抽屉滑出
                    shadeClose: true,
                    scrollbar: false
                });
            }
        });
    });
</script>
</body>
</html>

